Skip to main content

XPDFViewer_GetImageSelectionRange

Type

function

Summary

Get the current image selectionRange from a PDF Viewer.

Syntax

XPDFViewer_GetImageSelectionRange(<viewerName>)

Description

The function returns the range as pageNumber, left, top, right, bottom. The coordinates are real numbers in pdf coordinates rather than integers stack coordinates.

The function will return empty if there is no selection.

The following errors may be thrown by the command:

  • XPDF_ERROR: incorrect number of parameters
  • XPDF_ERROR: PDF viewer not found

Parameters

NameTypeDescription

viewerName

string

The name of the viewer.

Examples

put XPDFViewer_GetImageSelectionRange("Document1") into theCurrentSelection

Compatibility and Support

Introduced

LiveCode 1.0.0

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?